package common;

public class PrivateUser extends User{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String key;
	private String clientId;

	public PrivateUser(User u){
		this.setAlias(u.getAlias());
		this.setStatus(u.getStatus());
		this.setUserId(u.getUserId());
	}
	
	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getClientId() {
		return clientId;
	}

	public void setClientId(String clientId) {
		this.clientId = clientId;
	}

	public User getUser() {
		User u = new User();
		u.setUserId(this.getUserId());
		u.setStatus(this.getStatus());
		u.setAlias(this.getAlias());
		return u;
	}
	
}
